Video enhancement method and device

ABSTRACT

The disclosure discloses a video enhancement method and device, and belongs to the field of image processing. The method includes that: each frame in a video is sequentially acquired; and for each current frame, attribute information reflecting a moving state or luminance is determined, a preset mapping relationship is searched to obtain a control parameter corresponding to the attribute information, and video enhancement operation is executed on the current frame by using the control parameter. The device includes: an acquisition module and an enhancement module. By the disclosure, the problem of processing inflexibility caused by execution of the same enhancement over each frame in the video is solved, each frame in the video may be differentially enhanced, frame-based video enhancement is implemented, a video enhancement effect is effectively improved, and quality of the video is improved.

PRIORITY CLAIM AND RELATED APPLICATIONS

The disclosure is filed based upon and claims priority to Chinese PatentApplication of Application No. 201410401578.8, filed on Aug. 14, 2014 byTencent Technology (Shenzhen) Co., Ltd. and named as “video enhancementmethod and device”, the entire contents of which are incorporated hereinby reference.

TECHNICAL FIELD

The disclosure relates to the field of image processing, and inparticular to a video enhancement method and device.

BACKGROUND

If a video is damaged to a certain extent and polluted by various kindsof noise in a transmission and storage process, the video may lose itsessence or be deviated from a requirement of a user. Therefore, videopre-processing becomes an essential means for eliminating bad influence.

A video pre-processing technology refers to a series of operationexecuted before processing of a video, including image enhancement,image restoration and the like, wherein image enhancement is to add someinformation or transform data to an original image by virtue of acertain means, and selectively highlight an interested characteristic inthe image or suppress some unnecessary characteristics in the image tomatch the image with a visual response characteristic, thereby improvingquality of the image and enhancing a visual effect.

According to different spaces where an enhancement processing process isexecuted, image enhancement may be divided into two categories, i.e. afrequency-domain-based algorithm and a space-domain-based algorithm. Thefrequency-domain-based algorithm is to perform certain correction on atransformation coefficient value of an image in a certain transformationdomain of the image, and is an indirect enhancement algorithm. Forexample, the image is considered as a two-dimensional signal, and issubjected to two-dimensional Fourier transform-based signal enhancement.The space-domain-based algorithm is divided into a point operationalgorithm and a neighbourhood denoising algorithm. The point operationalgorithm refers to gray level correction, gray transformation,histogram correction and the like, and is intended to implement uniformimaging of an image, or extend a dynamic range of the image and extendcontrast. The neighbourhood denoising algorithm is divided into imagesmoothing and image sharpening. Image smoothing is usually configured toeliminate image noise, but may be likely to cause edge blur, and commonsmoothing algorithms include mean filtering, median filtering and thelike. Image sharpening is intended to highlight an edge contour of anobject to facilitate target identification, and common sharpeningalgorithms include a gradient method, an operator method, high-passfiltering, a mask matching method, a statistical difference method andthe like.

However, all of the abovementioned image enhancement technologies havethe same characteristic that the same enhancement operation is executedon each frame in a video, the adopted image enhancement algorithms areapplicable to all the frames in the video, and are undiversified inmeans and inflexible in processing, enhancement effects may not meetrequirements of frames in various scenarios, and particularly whencontents of each frame in the video are greatly varied, quality of thevideo may be deteriorated.

SUMMARY

In view of this, the embodiment of the disclosure provides a videoenhancement method and device, so as to improve video enhancementflexibility and quality of a video.

According to the embodiment of the disclosure, each frame in a video issequentially acquired; for each current frame, attribute informationreflecting a moving state or luminance is determined, a preset mappingrelationship is searched to obtain a control parameter corresponding tothe attribute information, and video enhancement operation is executedon the current frame by using the control parameter; the problem ofprocessing inflexibility caused by execution of the same enhancementover each frame in the video is solved; and each frame in the video maybe differentially processed, and different control parameters aredetermined for different enhancement according to the moving states orluminance in each frame, so that frame-based video enhancement isimplemented, a video enhancement effect is effectively improved, andquality of the video is improved.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to describe the technical solutions in the embodiment of thedisclosure more clearly, drawings required by description of theembodiment will be simply introduced below, the drawings described beloware only some embodiments of the disclosure obviously, and those skilledin the art may further obtain other drawings according to these drawingson the premise of no creative work.

FIG. 1 is a flowchart of a video enhancement method according to anembodiment of the disclosure;

FIG. 2 is a diagram of a video frame sequence according to anotherembodiment of the disclosure;

FIG. 3 is a flowchart of a video enhancement method according to anotherembodiment of the disclosure;

FIG. 4 is a flowchart of a video enhancement method according to anotherembodiment of the disclosure;

FIG. 5 is a diagram of each video processing link according to anotherembodiment of the disclosure;

FIG. 6 is a diagram of each processing link before sending of a videoaccording to another embodiment of the disclosure;

FIG. 7 is a flowchart of a video enhancement method according to anotherembodiment of the disclosure;

FIG. 8 is a diagram of each processing link after reception of a videoaccording to another embodiment of the disclosure;

FIG. 9 is a flowchart of a video enhancement method according to anotherembodiment of the disclosure;

FIG. 10 is a diagram of division of a frame into multiple regionsaccording to another embodiment of the disclosure;

FIG. 11 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 12 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 13 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 14 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 15 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 16 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 17 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 18 is a flowchart of a video enhancement method according toanother embodiment of the disclosure;

FIG. 19 is a diagram of division of a frame into regions according toanother embodiment of the disclosure;

FIG. 20 is a diagram of luminance values of neighbouring regionsaccording to another embodiment of the disclosure;

FIG. 21 is a diagram of contrast control parameters of neighbouringregions according to another embodiment of the disclosure;

FIG. 22 is a diagram of a smoothing processing result according toanother embodiment of the disclosure;

FIG. 23 is a diagram of video enhancement effect comparison according toanother embodiment of the disclosure;

FIG. 24 is a structure diagram of a video enhancement device accordingto another embodiment of the disclosure;

FIG. 25 is a structure diagram of a terminal according to anotherembodiment of the disclosure; and

FIG. 26 is a structure diagram of a server according to anotherembodiment of the disclosure.

DETAILED DESCRIPTION

In order to make a purpose, technical solutions and advantages of thedisclosure clearer, implementation modes of the disclosure will befurther described below with reference to the drawings in detail.

Referring to FIG. 1, an embodiment of the disclosure provides a videoenhancement method, which includes:

101: each frame in a video is sequentially acquired.

In the embodiment, the step that each frame in the video is sequentiallyacquired refers to that each frame in a video frame sequence is acquiredaccording to an arrangement of the frames. FIG. 2 is a diagram of avideo frame sequence according to another embodiment of the disclosure.Wherein, a video includes a plurality of frames: a first frame, a secondframe . . . an (i−1)th frame, an ith frame, an (i+1)th frame . . . an(n−1)th frame, an nth frame and the like.

102: for each current frame, attribute information reflecting a movingstate or luminance is determined, a preset mapping relationship issearched to obtain a control parameter corresponding to the attributeinformation, and a video enhancement operation is executed on thecurrent frame by using the control parameter.

In the embodiment, contents included in the frames in the video mayusually describe their attributes from multiple aspects. The movingstates may reflect whether persons, objects or sceneries in the framesare in a still state or a moving state. Luminance may reflect luminanceof the frames. Human eyes may usually have different requirements onframes with different attributes, according to sense characteristics ofthe human eyes. For a still or bright scenario, human eyes usuallyrequire high definition; and for a moving or dark scenario, human eyesmay appropriately reduce a requirement on definition.

In the embodiment, the step that the attribute information reflectingthe moving state or the luminance is determined, the preset mappingrelationship is searched to obtain the control parameter correspondingto the attribute information and a video enhancement operation isexecuted on the current frame by using the control parameter mayoptionally include that:

the attribute information, reflecting the moving state or the luminance,of the current frame is determined, a preset mapping relationshipbetween attribute information and a control parameter is searched toobtain the control parameter of the current frame, and video enhancementoperation is executed on the current frame by using the controlparameter of the current frame; or,

the current frame is divided into multiple regions, attributeinformation, reflecting a moving state or luminance, of each region isdetermined, the preset mapping relationship between the attributeinformation and the control parameter is searched to obtain a controlparameter of each region, and video enhancement operation is executed onthe current frame by using the control parameters of all the regions inthe current frame.

In the embodiment, the step that the attribute information, reflectingthe moving state or the luminance, of the current frame is determinedand the preset mapping relationship between the attribute informationand the control parameter is searched to obtain the control parameter ofthe current frame may optionally include that:

a Quantization Parameter (QP) of the current frame is calculated, and apreset mapping relationship between a QP and a control parameter issearched to obtain a control parameter corresponding to the QP; or,

a scenario type of the current frame is determined, and a preset mappingrelationship between a scenario type and a control parameter is searchedto obtain a control parameter corresponding to the scenario type; or,

a luminance value of the current frame is calculated, and a presetmapping relationship between a luminance value and a control parameteris searched to obtain a control parameter corresponding to the luminancevalue,

wherein the control parameter includes at least one of: a contrastcontrol parameter, a definition control parameter or a noise reductioncontrol parameter.

In the embodiment, the step that the attribute information, reflectingthe moving state or the luminance, of each region is determined and thepreset mapping relationship between the attribute information and thecontrol parameter is searched to obtain the control parameter of eachregion may optionally include that:

a QP of each region is calculated, and the preset mapping relationshipbetween the QP and the control parameter is searched to obtain thecontrol parameter of each region; or,

a scenario type of each region is determined, and the preset mappingrelationship between the scenario type and the control parameter issearched to obtain the control parameter of each region; or,

a luminance value of each region is calculated, and the preset mappingrelationship between the luminance value and the control parameter issearched to obtain the control parameter of each region,

wherein the control parameter includes at least one of: a contrastcontrol parameter, a definition control parameter or a noise reductioncontrol parameter.

In the embodiment, the step that video enhancement operation is executedon the current frame by using the control parameter of the current framemay optionally include that:

a difference between the control parameter of the current frame and acontrol parameter of a previous frame is calculated, and whether anabsolute value of the difference exceeds a specified threshold value ornot is judged;

if the absolute value of the difference exceeds the specified thresholdvalue, a new control parameter is calculated according to the controlparameter of the previous frame and the threshold value, and videoenhancement operation is executed on the current frame by using the newcontrol parameter; and

if the absolute value of the difference does not exceed the specifiedthreshold value, video enhancement operation is executed on the currentframe by using the control parameter of the current frame.

In the embodiment, before the step that video enhancement operation isexecuted on the current frame by using the control parameters of all theregions in the current frame, the method optionally further includesthat:

for each region i in the current frame, whether absolute values ofdifferences between control parameters of neighbouring regions and acontrol parameter of the region i exceed a specified threshold value ornot is judged;

if an absolute value of a difference between a control parameter of atleast one neighbouring region and the control parameter of the region iexceeds the specified threshold value, a new control parameter iscalculated according to a preset algorithm, and the new controlparameter is determined as the control parameter of the region i; and

if the absolute values of the differences between the control parametersof all the neighbouring regions and the control parameter of the regioni do not exceed the specified threshold value, the control parameter ofthe region i is kept unchanged.

In the embodiment, the step that the new control parameter is calculatedaccording to the preset algorithm may optionally include that:

the new control parameter is calculated according to the controlparameters of the neighbouring regions, under a principle that theabsolute values of the differences with the control parameters of eachneighbouring region do not exceed the specified threshold value; or,

a weight is specified for each neighbouring region, and the new controlparameter is calculated according to the control parameters and weightsof the neighbouring regions.

In the embodiment, the mapping relationship may optionally be any one ofthe following three:

in the mapping relationship, a larger QP corresponds to a smallercontrast control parameter, and/or, a larger QP corresponds to a smallerdefinition control parameter, and/or, a larger QP corresponds to alarger noise reduction control parameter; or,

in the mapping relationship, a higher movement degree represented by ascenario type corresponds to a smaller contrast control parameter,and/or, a higher movement degree represented by a scenario typecorresponds to a smaller definition control parameter, and/or, a highermovement degree represented by a scenario type corresponds to a largernoise reduction control parameter; or,

in the mapping relationship, a larger luminance value corresponds to alarger contrast control parameter, and/or, a larger luminance valuecorresponds to a larger definition control parameter, and/or, a largerluminance value corresponds to a smaller noise reduction controlparameter.

In the embodiment, the scenario type optionally at least includes astill scenario and a moving scenario;

the still scenario includes: a desktop or document sharing scenarioand/or a still person scenario; and

the moving scenario includes: at least one of a slight moving scenario,an ordinary moving scenario, a large moving scenario and a strenuousmoving scenario.

In the embodiment, after the step that video enhancement operation isexecuted on the current frame by using the control parameter, the methodmay optionally further include that: the video subjected to videoenhancement operation is coded, and the coded video is sent.

In the embodiment, the step that each frame in the video is sequentiallyacquired may optionally include that:

the video is received, the video is decoded, and each frame in thedecoded video is sequentially acquired.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the attributeinformation reflecting the moving state or the luminance is determined,the preset mapping relationship is searched to obtain the controlparameter corresponding to the attribute information, and videoenhancement operation is executed on the current frame by using thecontrol parameter; the problem of processing inflexibility caused byexecution of the same enhancement over each frame in the video issolved; and each frame in the video may be differentially processed, anddifferent control parameters are determined for different enhancementaccording to the moving states or luminance in each frame, so thatframe-based video enhancement is implemented, a video enhancement effectis effectively improved, and quality of the video is improved.

Referring to FIG. 3, another embodiment of the disclosure provides avideo enhancement method, which includes:

301: each frame in a video is sequentially acquired;

302: for each current frame, attribute information, reflecting a movingstate or luminance, of the current frame is determined, and a presetmapping relationship between attribute information and a controlparameter is searched to obtain a control parameter of the currentframe; and

303: video enhancement operation is executed on the current frame byusing the control parameter of the current frame.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the attributeinformation reflecting the moving state or the luminance is determined,the preset mapping relationship between the attribute information andthe control parameter is searched to obtain the control parameter of thecurrent frame, and video enhancement operation is executed on thecurrent frame by using the control parameter; the problem of processinginflexibility caused by execution of the same enhancement over eachframe in the video is solved; and each frame in the video may bedifferentially processed, and different control parameters aredetermined for different enhancement according to the moving states orluminance in each frame, so that frame-based video enhancement isimplemented, a video enhancement effect is effectively improved, andquality of the video is improved.

Referring to FIG. 4, another embodiment of the disclosure provides avideo enhancement method, which includes:

401: each frame in a video is sequentially acquired;

402: for each current frame, attribute information, reflecting a movingstate or luminance, of the current frame is determined, and a presetmapping relationship between attribute information and a controlparameter is searched to obtain a control parameter of the currentframe;

403: video enhancement operation is executed on the current frame byusing the control parameter of the current frame;

404: the video subjected to video enhancement operation is coded,

wherein, various coding methods may be adopted for coding the video, andwill not be specifically limited in the embodiment; and

405: the coded video is sent.

FIG. 5 is a diagram of each video processing link according to anotherembodiment of the disclosure. Wherein, a camera acquisition unitacquires the video, and electronic equipment may send the video to otherelectronic equipment after coding the video. The camera acquisition unitmay be located in the electronic equipment and may also be located inother equipment, which will not be specifically limited in theembodiment. Specifically, the video may be sent to other proximalelectronic equipment through a local network, or may be sent to otherremote electronic equipment through the Internet. After receiving thevideo, the other electronic equipment decodes the received video atfirst, and then displays the video. S1 shown in FIG. 5 is a link beforecoding, and S2 is a link after decoding. In the disclosure, the videoenhancement method may be executed only in link S1, or the videoenhancement method is executed only in link S2, or the two may becombined, that is, the video enhancement method may be executed in bothlink S1 and link S2. In the embodiment, video enhancement operation isexecuted in link S1, i.e. before coding.

It is important to note that operation such as video scaling or frameskipping may usually be executed before video coding. FIG. 6 is adiagram of each processing link before sending of a video according toanother embodiment of the disclosure. Wherein, before the video iscoded, scaling processing and frame skipping processing may also beperformed on the video. Scaling processing refers to scaling up orscaling down the video to achieve adaptability to a processingcapability of electronic equipment. For example, an 800*600 video isscaled down to a 400*300 video, or the 400*300 video is scaled up to the800*600 video. In addition, some electronic equipment itself has anintrinsic video enhancement function for example, performing enhancementprocessing by virtue of mean filtering. Such processing may be performedbefore coding, for example, before or after scaling, or before or afterframe skipping. Frame skipping may also be called frame dropping, andframe skipping processing refers to processing of discarding some framesin a video sequence. As shown in FIG. 6, in the embodiment, the stepthat video enhancement operation is executed on the current frame byusing the control parameter of the current frame may be executed in linkA, i.e. before scaling, or may be executed in link B, i.e. before frameskipping, or may be executed in link C, i.e. before coding. Of course,if intrinsic enhancement processing is executed before coding, the stepmay also be executed before or after intrinsic enhancement processing,and there are no specific limits made in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the attributeinformation, reflecting the moving state or the luminance, of thecurrent frame is determined, the preset mapping relationship between theattribute information and the control parameter is searched to obtainthe control parameter of the current frame, and video enhancementoperation is executed on the current frame by using the controlparameter; the problem of processing inflexibility caused by executionof the same enhancement over each frame in the video is solved; and eachframe in the video may be differentially processed, and differentcontrol parameters are determined for different enhancement according tothe moving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Referring to FIG. 7, another embodiment of the disclosure provides avideo enhancement method, which includes:

701: a video is received;

702: the received video is decoded;

703: each frame in the decoded video is sequentially acquired;

704: for each current frame, attribute information, reflecting a movingstate or luminance, of the current frame is determined, and a presetmapping relationship between attribute information and a controlparameter is searched to obtain a control parameter of the currentframe; and

705: video enhancement operation is executed on the current frame byusing the control parameter of the current frame.

Referring to FIG. 5, in the embodiment, the step that video enhancementoperation is executed on the current frame by using the controlparameter of the current frame may be executed in link S2, i.e. afterdecoding operation. The method may be applied to electronic equipment,and after decoding the received video, the electronic equipment executesvideo enhancement operation on the decoded video, and then may locallydisplay the video subjected to video enhancement operation.

It is important to note that operation such as video scaling orintrinsic enhancement processing may usually be executed after videodecoding. FIG. 8 is a diagram of each processing link after reception ofa video according to another embodiment of the disclosure. Afterreceiving the video, the electronic equipment may perform decodingprocessing, intrinsic enhancement processing, scaling processing or thelike. Wherein, intrinsic enhancement processing refers to that theelectronic equipment has a video enhancement function of, for example,performing video enhancement processing by virtue of a statisticaldifference method. As shown in FIG. 8, in the embodiment, the step thatvideo enhancement operation is executed on the current frame by usingthe control parameter of the current frame may be executed in link D,i.e. before intrinsic enhancement processing, or may be executed in linkE, i.e. before scaling, or may be executed in link F, i.e. afterscaling, and there are no specific limits made in the embodiment.

According to the method provided by the embodiment, the video isreceived; the received video is decoded; each frame in the decoded videois sequentially acquired; for each current frame, the attributeinformation, reflecting the moving state or the luminance, of thecurrent frame is determined, and the preset mapping relationship betweenthe attribute information and the control parameter is searched toobtain the control parameter of the current frame; video enhancementoperation is executed on the current frame by using the controlparameter of the current frame; the problem of processing inflexibilitycaused by execution of the same enhancement over each frame in the videois solved; and each frame in the video may be differentially processed,and different control parameters are determined for differentenhancement according to the moving states or luminance in each frame,so that frame-based video enhancement is implemented, a videoenhancement effect is effectively improved, and quality of the video isimproved.

Referring to FIG. 9, another embodiment of the disclosure provides avideo enhancement method, which includes the following steps.

901: each frame in a video is sequentially acquired.

902: for each current frame, the current frame is divided into multipleregions.

In the embodiment, multiple region division manners may be adopted,which will not be specifically limited. Each divided region may havevarious shapes, such as a rectangle, a square and the like. Each regionmay have the same size and may have different sizes, which will not bespecifically limited in the embodiment. For example, a frame is dividedinto 4*4 regions, transversely including 4 regions and longitudinallyincluding 4 regions, or is divided into 16*16 regions, transverselyincluding 16 regions and longitudinally including 16 regions, and thelike.

For example, referring to FIG. 10, a frame may be divided into n*nregions, as shown in the left figure, or, may also be divided into 4*4regions, as shown in the right figure. The 4*4 regions transverselyinclude 4 rows with each row including 4 regions, and are uniformlydivided, so that each divided region has the same size. Wherein, thefirst row includes regions a, b, c and d, the second row includesregions e, f, g and h, the third row includes regions i, j, k and l, andthe fourth row includes regions m, n, o and p.

903: attribute information, reflecting a moving state or luminance, ofeach region is determined, and a preset mapping relationship betweenattribute information and a control parameter is searched to obtain acontrol parameter of each region.

904: video enhancement operation is executed on the current frame byusing the control parameters of all the regions in the current frame.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the currentframe is divided into multiple regions; the attribute information,reflecting the moving state or the luminance, of each region isdetermined, and the preset mapping relationship between the attributeinformation and the control parameter is searched to obtain the controlparameter of each region; video enhancement operation is executed on thecurrent frame by using the control parameters of all the regions in thecurrent frame; the problem of processing inflexibility caused byexecution of the same enhancement over each frame in the video issolved; and each frame in the video may be differentially processed, anddifferent control parameters are determined for different enhancementaccording to the moving states or luminance in each frame, so thatframe-based video enhancement is implemented, a video enhancement effectis effectively improved, and quality of the video is improved.

Referring to FIG. 11, another embodiment of the disclosure provides avideo enhancement method, which includes:

1101: each frame in a video is sequentially acquired;

1102: for each current frame, the current frame is divided into multipleregions;

1103: attribute information, reflecting a moving state or luminance, ofeach region is determined, and a preset mapping relationship betweenattribute information and a control parameter is searched to obtain acontrol parameter of each region;

1104: video enhancement operation is executed on the current frame byusing the control parameters of all the regions in the current frame;

1105: the video subjected to video enhancement operation is coded; and

1106: the coded video is sent.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the currentframe is divided into multiple regions; the attribute information,reflecting the moving state or the luminance, of each region isdetermined, and the preset mapping relationship between the attributeinformation and the control parameter is searched to obtain the controlparameter of each region; video enhancement operation is executed on thecurrent frame by using the control parameters of all the regions in thecurrent frame; the video subjected to video enhancement operation iscoded; the coded video is sent; the problem of processing inflexibilitycaused by execution of the same enhancement over each frame in the videois solved; and each frame in the video may be differentially processed,and different control parameters are determined for differentenhancement according to the moving states or luminance in each frame,so that frame-based video enhancement is implemented, a videoenhancement effect is effectively improved, and quality of the video isimproved.

Referring to FIG. 12, another embodiment of the disclosure provides avideo enhancement method, which includes:

1201: a video is received;

1202: the received video is decoded;

1203: each frame in the decoded video is sequentially acquired;

1204: for each current frame, the current frame is divided into multipleregions;

1205: attribute information, reflecting a moving state or luminance, ofeach region is determined, and a preset mapping relationship betweenattribute information and a control parameter is searched to obtain acontrol parameter of each region; and

1206: video enhancement operation is executed on the current frame byusing the control parameters of all the regions in the current frame.

According to the method provided by the embodiment, the video isreceived; the received video is decoded; each frame in the decoded videois sequentially acquired; for each current frame, the current frame isdivided into multiple regions; the attribute information, reflecting themoving state or the luminance, of each region is determined, and thepreset mapping relationship between the attribute information and thecontrol parameter is searched to obtain the control parameter of eachregion; video enhancement operation is executed on the current frame byusing the control parameters of all the regions in the current frame;the problem of processing inflexibility caused by execution of the sameenhancement over each frame in the video is solved; and each frame inthe video may be differentially processed, and different controlparameters are determined for different enhancement according to themoving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Referring to FIG. 13, another embodiment of the disclosure provides avideo enhancement method, which processes the whole frame and includesthe following steps.

1301: each frame in a video is sequentially acquired.

1302: for each current frame, a QP of the current frame is calculated,and a preset mapping relationship is searched to obtain a controlparameter corresponding to the QP.

In the embodiment, a value of the QP may reflect a degree of a movingstate of a video content. If the value of the QP is larger, it isindicated that a movement degree of the video content is higher, and forexample, the video content is in a strenuous moving state. If the valueof the QP is smaller, it is indicated that the movement degree of thevideo content is lower. For a scenario with a higher movement degree, itis usually impossible for human eyes to clearly see a certain part in amoving object. Therefore, for such a scenario, it is unnecessary toenhance a video content, or weak video enhancement may be performed. Onthe contrary, for a scenario with a lower movement degree, human eyesusually have a higher requirement on definition of a video content, andexpect to clearly see every part. Therefore, for such a scenario, strongvideo enhancement is required.

In the embodiment, there are many QP calculation methods, for example, amethod of employing a QP of a previous frame as a QP value of thecurrent frame may be adopted, other methods may, of course, also beadopted, and there are no specific limits made in the embodiment.

In the preset mapping relationship, the QP may correspond to one or morecontrol parameters. The control parameter includes, but not limited to:a contrast control parameter, a definition control parameter, a noisereduction control parameter or the like, which will not be specificallylimited in the embodiment. Descriptions will be given below with thethree parameters as an example. Wherein, the QP may correspond to anyone or more of the three parameters. Preferably, the QP corresponds tothe three parameters.

In the embodiment, the contrast control parameter is configured toregulate a contrast of the video content. Optionally, a value of thecontrast control parameter may be set to be multiple levels, such as 0,1, 2, 3 or 0, 2, 4, 6, 8, 10 or the like. Wherein, each levelcorresponds to a specific contrast value. When the contrast controlparameter is regulated to a certain level, the video content isregulated according to a contrast value corresponding to the level.Optionally, it may be set that a video enhancement effect is better ifthe value of the contrast control parameter is larger and the videoenhancement effect is poorer if the value of the contrast controlparameter is smaller.

The definition control parameter is configured to regulate a definitionof the video content. Optionally, a value of the definition controlparameter may be set to be multiple levels, such as 0, 1, 2, 3 . . . or0, 2, 4, 6, 8, 10 or the like. Wherein, each level corresponds to aspecific definition value. When the definition control parameter isregulated to a certain level, the video content is regulated accordingto a definition value corresponding to the level. Optionally, it may beset that the video enhancement effect is better if the value of thedefinition control parameter is larger and the video enhancement effectis poorer if the value of the definition control parameter is smaller.

The noise reduction control parameter is configured to reduce noise ofthe video content. Optionally, a value of the noise reduction controlparameter may be set to be multiple levels, such as 0, 1, 2, 3 . . . or0, 2, 4, 6, 8, 10 or the like. Wherein, each level corresponds to aspecific noise reduction value. When the noise reduction controlparameter is regulated to a certain level, noise reduction regulation isperformed on the video content according to a noise reduction valuecorresponding to the level. Optionally, it may be set that a videocontent noise reduction degree is higher if the value of the noisereduction control parameter is larger and the video content noisereduction degree is lower if the value of the noise reduction controlparameter is smaller.

In addition, it is important to note that it may be QP valuescorresponding to control parameters in the mapping relationship, or, itmay also be QP ranges corresponding to the control parameters, and thereare no specific limits made in the embodiment. Preferably, a form that aQP range corresponds to a control parameter may be selected to improve acontrol effect.

For example, Table 1 shows a mapping relationship between QP ranges ofthe whole frame and each of a contrast control parameter, a definitioncontrol parameter and a noise reduction control parameter in theembodiment.

TABLE 1 QPi (0, 20] (20, 25] (25, 30] (30, 35] (35, 40] (40, ∞] α1 10 86 4 2 0 α2 10 8 6 4 2 0 α3 0 2 4 6 8 10

Wherein, α1 is the contrast control parameter, α2 is the definitioncontrol parameter, and α3 is the noise reduction control parameter. QPiis a QP of the current frame (ith frame), and has 6 value rangescorresponding to 6 different values of the contrast control parameterα1, 6 different values of the definition control parameter α2 and 6different values of the noise reduction control parameter α3respectively. As shown in Table 1: when QP≤20, α1=10, α2=10 and α3=0;when 20<QPi≤25, α1=8, α2=8 and α3=2 when 35<QPi ≤40, α1=2, α2=2 andα3=8; and when 40<QPi, α1=0, α2=0 and α3=10. Of course, other manners orother numerical values may also be adopted to set the mappingrelationship between the QP and each control parameter, which will notbe specifically limited in the embodiment.

In the embodiment, QP values are divided into different intervals, andlengths of the intervals may be set according to a requirement, forexample: 5 QP values may form an interval, such as 20, 25, 30, 35, 40 .. . or, 2 QP values may form an interval. There are no specific limitsmade in the embodiment.

1303: video enhancement operation is executed on the current frame byusing the control parameter of the current frame.

Furthermore, in order to avoid an enhancement effect of neighbouringframes being greatly changed, smoothing processing may be performed.

For example, if a contrast control parameter α1 of the current frame is6, a contrast control parameter α1 of a previous frame is 2 and aspecified threshold value is 3, a difference is 6−2=4 and 4>3.Therefore, α1 of the previous frame and the threshold value may be addedto calculate α1=2+3=5 of the current frame according to that α1 of thecurrent frame is larger than α1 of the previous frame to further ensurethat the difference between the contrast control parameters of the twoneighbouring frames does not exceed the specified threshold value.

For example, if a definition control parameter α2 of the current frameis 4, a definition control parameter α2 of the previous frame is 8 and aspecified threshold value is 3, a difference is 8−4=4 and 4>2.Therefore, the threshold value may be subtracted from α2 of the previousframe to calculate α2=8−2=6 of the current frame according to that α2 ofthe current frame is smaller than α2 of the previous frame to furtherensure that the difference between the definition control parameters ofthe two neighbouring frames does not exceed the specified thresholdvalue.

By smoothing processing, a sudden change effect may be avoided eventhough contents of the two neighbouring frames are greatly changedduring video enhancement, smooth and more natural transition is ensured,and a user experience is improved.

The method provided by the embodiment may be executed in any processinglink of a video frame, such as link A, link B or link C in FIG. 6 andlink D, link E or link F in FIG. 8, and there are no specific limitsmade in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the QP of thecurrent frame is calculated, the preset mapping relationship is searchedto obtain the control parameter corresponding to the QP, and videoenhancement operation is executed on the current frame by using thecontrol parameter of the current frame; the problem of processinginflexibility caused by execution of the same enhancement over eachframe in the video is solved; and each frame in the video may bedifferentially processed, and different control parameters aredetermined for different enhancement according to the moving states orluminance in each frame, so that frame-based video enhancement isimplemented, a video enhancement effect is effectively improved, andquality of the video is improved.

Referring to FIG. 14, another embodiment of the disclosure provides avideo enhancement method, which processes the whole frame and includesthe following steps.

1401: each frame in a video is sequentially acquired.

1402: for each current frame, a scenario type of the current frame isdetermined, and a preset mapping relationship is searched to obtain acontrol parameter corresponding to the scenario type.

In the embodiment, the scenario type may reflect a degree of a movingstate or still state of a video content. The scenario type at leastincludes a still scenario and a moving scenario; and the still scenarioincludes: a desktop or document sharing scenario and/or a still personscenario. The moving scenario includes: at least one of a slight movingscenario, an ordinary moving scenario, a large moving scenario and astrenuous moving scenario. Wherein, the desktop or document sharingscenario refers to a scenario where a terminal shares own currentdesktop content or document to another terminal, and the scenario is astill object scenario. The still person scenario refers to that there isa person in the video content and the person is in a still state.

For a scenario with a higher movement degree, it is usually impossiblefor human eyes to clearly see a certain part in a moving object.Therefore, for such a scenario, it is unnecessary to enhance a videocontent, or weak video enhancement may be performed. On the contrary,for a scenario with a lower movement degree, human eyes usually have ahigher requirement on definition of a video content, and expect toclearly see every part. Therefore, for such a scenario, strong videoenhancement is required.

In the preset mapping relationship between a scenario type and a controlparameter, the scenario type may correspond to one or more controlparameters. The control parameter includes, but not limited to: acontrast control parameter, a definition control parameter, a noisereduction control parameter or the like, which will not be specificallylimited in the embodiment. Descriptions will be given below with thethree parameters as an example. Wherein, the scenario type maycorrespond to any one or more of the three parameters. Preferably, thescenario type corresponds to the three parameters.

In the embodiment, the contrast control parameter is configured toregulate a contrast of the video content. Optionally, a value of thecontrast control parameter may be set to be multiple levels. Thedefinition control parameter is configured to regulate a definition ofthe video content. Optionally, a value of the definition controlparameter may be set to be multiple levels. The noise reduction controlparameter is configured to reduce noise of the video content.Optionally, a value of the noise reduction control parameter may be setto be multiple levels. Detailed descriptions about these parametersrefer to descriptions in the abovementioned embodiment, and will not beelaborated herein.

For example, Table 2 shows a mapping relationship between a scenariotype and each of a contrast control parameter, a definition controlparameter and a noise reduction control parameter in the embodiment.

TABLE 2 Sren- Scenario Desktop/ Still Slight Ordinary Large uous type ofdocument person moving moving moving moving ith frame sharing scenarioscenario scenario scenario scenario α1 10 8 6 4 2 0 α2 10 8 6 4 2 0 α3 02 4 6 8 10

Wherein, α1 is the contrast control parameter, α2 is the definitioncontrol parameter, and α3 is the noise reduction control parameter.There are 6 scenario types of the current ith frame, corresponding to 6different values of the contrast control parameter α1, 6 differentvalues of the definition control parameter α2 and 6 different values ofthe noise reduction control parameter α3 respectively. As shown in Table2: when the scenario type of the ith frame is desktop or documentsharing, α1=10, α2=10 and α3=0; when the scenario type of the ith frameis a still person scenario, α1=8, α2=8 and α3=2 . . . when the scenariotype of the ith frame is a large moving scenario, α1=2, α2=2 and α3=8;and when the scenario type of the ith frame is a strenuous movingscenario, α1=0, α2=0 and α3=10. Of course, other manners or othernumerical values may also be adopted to set the mapping relationshipbetween the scenario type and each control parameter, which will not bespecifically limited in the embodiment.

1403: video enhancement operation is executed on the current frame byusing the control parameter of the current frame.

Furthermore, in order to avoid an enhancement effect of neighbouringframes being greatly changed, smoothing processing may be performed.

By smoothing processing, a sudden change effect may be avoided eventhough contents of two neighbouring frames are greatly changed duringvideo enhancement, smooth and more natural transition is ensured, and auser experience is improved.

The method provided by the embodiment may be executed in any processinglink of a video frame, such as link A, link B or link C in FIG. 6 andlink D, link E or link F in FIG. 8, and there are no specific limitsmade in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the scenariotype of the current frame is determined, the preset mapping relationshipis searched to obtain the control parameter corresponding to thescenario type, and video enhancement operation is executed on thecurrent frame by using the control parameter of the current frame; theproblem of processing inflexibility caused by execution of the sameenhancement over each frame in the video is solved; and each frame inthe video may be differentially processed, and different controlparameters are determined for different enhancement according to themoving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Referring to FIG. 15, another embodiment of the disclosure provides avideo enhancement method, which processes the whole frame and includesthe following steps.

1501: each frame in a video is sequentially acquired.

1502: for each current frame, a luminance value of the current frame iscalculated, and a preset mapping relationship is searched to obtain acontrol parameter corresponding to the luminance value.

In the embodiment, the luminance value of the current frame may reflecta luminance state of a video content. The luminance value may be a meanof luminance of each pixel in the current frame. When the luminancevalue of the current frame is larger, it is indicated that the frame isbrighter; and when the luminance value of the current frame is smaller,it is indicated that the frame is darker.

For a darker scenario, it is almost impossible for human eyes to clearlysee every part. For example, in a scenario where video chatting isperformed in a room with a lamp turned off, a background is usually darkand may not be seen clearly, and at this point, human eyes may not haveany strict requirement on definition. Therefore, for such a scenario, itis unnecessary to enhance the video content, or weak video enhancementmay be performed. On the contrary, for a brighter scenario, human eyesusually have a higher requirement on the definition of the videocontent, and expect to clearly see every part. Therefore, for such ascenario, strong video enhancement is required.

In the preset mapping relationship between a luminance value and acontrol parameter, the luminance value may correspond to one or morecontrol parameters. The control parameter includes, but not limited to:a contrast control parameter, a definition control parameter, a noisereduction control parameter or the like, which will not be specificallylimited in the embodiment. Descriptions will be given below with thethree parameters as an example. Wherein, the luminance value maycorrespond to any one or more of the three parameters. Preferably, theluminance value corresponds to the three parameters.

In the embodiment, the contrast control parameter is configured toregulate a contrast of the video content. Optionally, a value of thecontrast control parameter may be set to be multiple levels. Thedefinition control parameter is configured to regulate a definition ofthe video content. Optionally, a value of the definition controlparameter may be set to be multiple levels. The noise reduction controlparameter is configured to reduce noise of the video content.Optionally, a value of the noise reduction control parameter may be setto be multiple levels. Detailed descriptions about these parametersrefer to descriptions in the abovementioned embodiment, and will not beelaborated herein.

For example, Table 3 shows a mapping relationship between a luminancevalue and each of a contrast control parameter, a definition controlparameter and a noise reduction control parameter in the embodiment.

TABLE 3 (80, Lumai (0, 50] (50, 80] 100] (100, 150] (150, 200] (200, ∞]α1 0 2 4 6 8 10 α2 0 2 4 6 8 10 α3 10 8 6 4 2 0

Wherein, α1 is the contrast control parameter, α2 is the definitioncontrol parameter, α3 is the noise reduction control parameter and lumaiis the luminance value of the current ith frame. The luminance value has6 value ranges, corresponding to 6 different values of the contrastcontrol parameter α1, 6 different values of the definition controlparameter α2 and 6 different values of the noise reduction controlparameter α3 respectively. As shown in Table 3: when lumai≤50, α1=0,α2=0 and α3=10; when 50<lumai≤80, α1=2, α2=2 and α3=8 . . . when150<lumai≤200, α1=8, α2=8 and α3=2; and when 200<lumai, α1=10, α2=10 andα3=0. Of course, other manners or other numerical values may also beadopted to set the mapping relationship between the luminance value andeach control parameter, which will not be specifically limited in theembodiment.

1503: video enhancement operation is executed on the current frame byusing the control parameter of the current frame.

Furthermore, in order to avoid an enhancement effect of neighbouringframes being greatly changed, smoothing processing may be performed.

By smoothing processing, a sudden change effect may be avoided eventhough contents of two neighbouring frames are greatly changed duringvideo enhancement, smooth and more natural transition is ensured, and auser experience is improved.

The method provided by the embodiment may be executed in any processinglink of a video frame, such as link A, link B or link C in FIG. 6 andlink D, link E or link F in FIG. 8, and there are no specific limitsmade in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the luminancevalue of the current frame is calculated, the preset mappingrelationship is searched to obtain the control parameter correspondingto the luminance value, and video enhancement operation is executed onthe current frame by using the control parameter of the current frame;the problem of processing inflexibility caused by execution of the sameenhancement over each frame in the video is solved; and each frame inthe video may be differentially processed, and different controlparameters are determined for different enhancement according to themoving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Referring to FIG. 16, another embodiment of the disclosure provides avideo enhancement method, which processes regions after a frame isdivided into the regions and includes the following steps.

1601: each frame in a video is sequentially acquired.

1602: for each current frame, the current frame is divided into multipleregions, a QP of each region is calculated, and a preset mappingrelationship between a QP and a control parameter is searched to obtaina control parameter of each region.

Wherein, region division may be implemented by multiple manners. Forexample, the regions may be divided according to a moving state and theQP, and the regions include, but not limited to: a texture region, alarge moving region, an ordinary moving region, a still region, a Regionof Interest (ROI) and the like.

The control parameter includes, but not limited to: any one or more of acontrast control parameter, a definition control parameter and a noisereduction control parameter, and there are no specific limits made inthe embodiment.

For example, Table 4 shows a mapping relationship between a QP range ofa region of a current frame and each of a contrast control parameter, adefinition control parameter and a noise reduction control parameter inthe embodiment.

TABLE 4 QPij (0, 20] (20, 25] (25, 30] (30, 35] (35, 40] (40, ∞] α1 10 86 4 2 0 α2 10 8 6 4 2 0 α3 0 2 4 6 8 10

Wherein, α1 is the contrast control parameter, α2 is the definitioncontrol parameter, and α3 is the noise reduction control parameter. Thecurrent frame is the ith frame, and QPij is a QP of the jth region ofthe ith frame, and has 6 value ranges corresponding to 6 differentvalues of the contrast control parameter α1, 6 different values of thedefinition control parameter α2 and 6 different values of the noisereduction control parameter α3 respectively. As shown in Table 4: whenQPij≤20, α1=10, α2=10 and α3=0; when 20<QPij≤25, α1=8, α2=8 and α3=2when 35<QPij≤40, α1=2, α2=2 and α3=8; and when 40<QPij, α1=0, α2=0 andα3=10. Of course, other manners or other numerical values may also beadopted to set the mapping relationship between the QP and each controlparameter, which will not be specifically limited in the embodiment.

1603: video enhancement operation is executed on the current frame byusing the control parameter of the current frame.

Furthermore, in order to avoid an enhancement effect of neighbouringframes being greatly changed, smoothing processing may be performed.

By smoothing processing, a sudden change effect may be avoided eventhough contents of two neighbouring frames are greatly changed duringvideo enhancement, smooth and more natural transition is ensured, and auser experience is improved.

The method provided by the embodiment may be executed in any processinglink of a video frame, such as link A, link B or link C in FIG. 6 andlink D, link E or link F in FIG. 8, and there are no specific limitsmade in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the currentframe is divided into multiple regions, the QP of each region iscalculated, the preset mapping relationship between the QP and thecontrol parameter is searched to obtain the control parameter of eachregion, and video enhancement operation is executed on the current frameby using the control parameters of all the regions in the current frame;the problem of processing inflexibility caused by execution of the sameenhancement over each frame in the video is solved; and each frame inthe video may be differentially processed, and different controlparameters are determined for different enhancement according to themoving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Referring to FIG. 17, another embodiment of the disclosure provides avideo enhancement method, which processes regions after a frame isdivided into the regions and includes the following steps.

1701: each frame in a video is sequentially acquired.

1702: for each current frame, the current frame is divided into multipleregions, a scenario type of each region is determined, and a presetmapping relationship between a scenario type and a control parameter issearched to obtain a control parameter of each region.

The control parameter includes, but not limited to: any one or more of acontrast control parameter, a definition control parameter and a noisereduction control parameter, and there are no specific limits made inthe embodiment.

For example, Table 5 shows a mapping relationship between a scenariotype of a region of a current frame and each of a contrast controlparameter, a definition control parameter and a noise reduction controlparameter in the embodiment.

TABLE 5 Stren- Scenario Desktop/ Still Slight Ordinary Large uous typeof document person moving moving moving moving ith frame sharingscenario scenario scenario scenario scenario α1 10 8 6 4 2 0 α2 10 8 6 42 0 α3 0 2 4 6 8 10

Wherein, α1 is the contrast control parameter, α2 is the definitioncontrol parameter, and α3 is the noise reduction control parameter. Thecurrent frame is the ith frame, and there are 6 scenario types of theith region of the ith frame, corresponding to 6 different values of thecontrast control parameter α1, 6 different values of the definitioncontrol parameter α2 and 6 different values of the noise reductioncontrol parameter α3 respectively. As shown in Table 5: when thescenario type of the jth region of the ith frame is desktop or documentsharing, α1=10, α2=10 and α3=0; when the scenario type of the jth regionof the ith frame is a still person scenario, α1=8, α2=8 and a 3=2 . . .when the scenario type of the jth region of the ith frame is a largemoving scenario, α1=2, α2=2 and α3=8; and when the scenario type of thejth region of the ith frame is a strenuous moving scenario, α1=0, α2=0and α3=10. Of course, other manners or other numerical values may alsobe adopted to set the mapping relationship between the scenario type andeach control parameter, which will not be specifically limited in theembodiment.

1703: video enhancement operation is executed on the current frame byusing the control parameters of all the regions in the current frame.

Furthermore, in order to avoid an enhancement effect of neighbouringframes being greatly changed, smoothing processing may be performed.

By smoothing processing, a sudden change effect may be avoided eventhough contents of two neighbouring frames are greatly changed duringvideo enhancement, smooth and more natural transition is ensured, and auser experience is improved.

The method provided by the embodiment may be executed in any processinglink of a video frame, such as link A, link B or link C in FIG. 6 andlink D, link E or link F in FIG. 8, and there are no specific limitsmade in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the currentframe is divided into multiple regions, the scenario type of each regionis determined, the preset mapping relationship between the scenario typeand the control parameter is searched to obtain the control parameter ofeach region, and video enhancement operation is executed on the currentframe by using the control parameters of all the regions in the currentframe; the problem of processing inflexibility caused by execution ofthe same enhancement over each frame in the video is solved; and eachframe in the video may be differentially processed, and differentcontrol parameters are determined for different enhancement according tothe moving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Referring to FIG. 18, another embodiment of the disclosure provides avideo enhancement method, which processes regions after a frame isdivided into the regions and includes the following steps.

1801: each frame in a video is sequentially acquired.

1802: for each current frame, the current frame is divided into multipleregions, a luminance value of each region is calculated, and a presetmapping relationship between a luminance value and a control parameteris searched to obtain a control parameter of each region.

Wherein, the luminance value of each region may be a mean of luminancevalues of all pixels in the region, which will not be specificallylimited in the embodiment. The control parameter includes, but notlimited to: any one or more of a contrast control parameter, adefinition control parameter and a noise reduction control parameter,and there are no specific limits made in the embodiment.

For example, Table 6 shows a mapping relationship between a luminancevalue of the jth region of the ith frame and each of a contrast controlparameter, a definition control parameter and a noise reduction controlparameter in the embodiment.

TABLE 6 (80, Lumaij (0, 50] (50, 80] 100] (100, 150] (150, 200] (200, ∞]α1 0 2 4 6 8 10 α2 0 2 4 6 8 10 α3 10 8 6 4 2 0

Wherein, α1 is the contrast control parameter, α2 is the definitioncontrol parameter, α3 is the noise reduction control parameter, thecurrent frame is the ith frame, and lumaij is the luminance value of thejth region of the ith frame. The luminance value has 6 value ranges,corresponding to 6 different values of the contrast control parameterα1, 6 different values of the definition control parameter α2 and 6different values of the noise reduction control parameter α3respectively. As shown in Table 6: when lumaij≤50, α1=0, α2=0 and α3=10;when 50<lumaij≤80, α1=2, α2=2 and α3=8 when 150<lumaij≤200, α1=8, α2=8and α3=2; and when 200<lumaij, α1=10, α2=10 and α3=0. Of course, othermanners or other numerical values may also be adopted to set the mappingrelationship between the luminance value and each control parameter,which will not be specifically limited in the embodiment.

1803: video enhancement operation is executed on the current frame byusing the control parameters of all the regions in the current frame.

Furthermore, in order to avoid an enhancement effect of neighbouringframes being greatly changed, smoothing processing may be performed.

By smoothing processing, a sudden change effect may be avoided eventhough contents of two neighbouring frames are greatly changed duringvideo enhancement, smooth and more natural transition is ensured, and auser experience is improved.

For example, FIG. 19 is a diagram of division of a frame into regionsaccording to another embodiment of the disclosure. Wherein, a regionwith a grey background is a region of which a control parameter has beendetermined, and a region with a white background is a region of which acontrol parameter has yet not been determined. Region O is a currentlyprocessed region, and neighbouring regions of region O include: regionA, region B, region C, region D, region E, region F, region G and regionH, wherein regions of which control parameters have been determinedinclude: region A, region B, region C and region D. During smoothingprocessing, for a currently processed region, it is only necessary toconsider neighbouring regions of which control parameters have beendetermined.

FIG. 20 is a diagram of luminance values of neighbouring regionsaccording to another embodiment of the disclosure. Wherein, region O ofa current frame is currently processed, and its neighbouring regions ofwhich control parameters have been determined include region A, regionB, region C and region D. Luminance values of the four regions are:L=60, L=80, L=140 and L=30 respectively. A luminance value L of region Ois 160. The preset mapping relationship is searched for a contrastcontrol parameter corresponding to each luminance value, and then thecontrast control parameter α1 of each region shown in FIG. 21 may beobtained. Wherein, contrast control parameters of region A, region B,region C, region D and region O are α1=2, α1=2, α1=6, α1=0 and α1=8respectively. If a specified difference threshold value of the contrastcontrol parameters is 4, differences between the contrast controlparameters of region O and each of neighbouring regions A, B, C and Dare calculated respectively, and are compared with the specifiedthreshold value, it can be seen that the difference 8-2 between region Oand region A is more than 4, the difference 8-2 between region O andregion B is more than 4, the difference 8-6 between region O and regionC is less than 4 and the difference 8-2 between region O and region D ismore than 4, and obviously, the differences between the contrast controlparameters of region O and three neighbouring regions exceed thespecified threshold value, so that smoothing processing is required. Onemethod is to perform calculation in a manner that a difference with thecontrast control parameter of any neighbouring region does not exceedthe specified threshold value, and specifically, the minimum contrastcontrol parameter α1=0 in the neighbouring regions is extracted and isadded with the specified threshold value 4 to obtain a new contrastcontrol parameter α1′=4 of region O. The other method is to set weightvalues 0.3, 0.4, 0.2 and 0.1 for the four neighbouring regionsrespectively and calculate the contrast control parameterα1′=2×0.3+2×0.4+6×0.2+0×0.1=2.6≈3 according to the weight values, aresult being shown in FIG. 22.

The method provided by the embodiment may be executed in any processinglink of a video frame, such as link A, link B or link C in FIG. 6 andlink D, link E or link F in FIG. 8, and there are no specific limitsmade in the embodiment.

According to the method provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the currentframe is divided into multiple regions, the luminance value of eachregion is calculated, the preset mapping relationship between theluminance value and the control parameter is searched to obtain thecontrol parameter of each region, and video enhancement operation isexecuted on the current frame by using the control parameters of all theregions in the current frame; the problem of processing inflexibilitycaused by execution of the same enhancement over each frame in the videois solved; and each frame in the video may be differentially processed,and different control parameters are determined for differentenhancement according to the moving states or luminance in each frame,so that frame-based video enhancement is implemented, a videoenhancement effect is effectively improved, and quality of the video isimproved.

In order to better describe a video enhancement effect of thedisclosure, descriptions will be given below with reference to FIG. 23.FIG. 23 is a diagram of video enhancement effect comparison according toanother embodiment of the disclosure. Wherein, the abscissa axis is thenumber of frames of a video sequence, and a curve from the 100th frameto the 300th frame is displayed in the figure. The ordinate axis is ablurring feather value. Curve {circle around (1)} is a coding anddecoding output curve of a video subjected to video enhancement byvirtue of the method provided by the disclosure under the conditions ofa 100 k bandwidth and a rate of 10 frames per second. Curve {circlearound (2)} is a coding and decoding output curve of a video notsubjected to video enhancement under the conditions of a 4M bandwidth, arate of 10 frames per second and a fixed QP of 18. Curve {circle around(3)} is a coding and decoding output curve of a video not subjected tovideo enhancement under the conditions of a 4M bandwidth, a rate of 10frames per second and a fixed QP of 35. From the figure, it can directlybe seen that a feather value of a video sequence subjected to videoenhancement processing of the disclosure is obviously larger than afeather value of a video sequence not subjected to video enhancementprocessing, a good video enhancement effect and a good user experienceare achieved and quality of the video is improved.

Referring to FIG. 24, another embodiment of the disclosure provides avideo enhancement device, which includes:

an acquisition module 2401, configured to sequentially acquire eachframe in a video; and

an enhancement module 2402, configured to, for each current frame,determine attribute information reflecting a moving state or luminance,search a preset mapping relationship to obtain a control parametercorresponding to the attribute information, and execute videoenhancement operation on the current frame by using the controlparameter.

In the embodiment, the enhancement module may optionally include:

a first enhancement sub-module, configured to, for each current frame,determine the attribute information, reflecting the moving state or theluminance, of the current frame, search a preset mapping relationshipbetween attribute information and a control parameter to obtain thecontrol parameter of the current frame, and execute a video enhancementoperation on the current frame by using the control parameter of thecurrent frame; or,

a second enhancement sub-module, configured to, for each current frame,divide the current frame into multiple regions, determine attributeinformation, reflecting a moving state or luminance, of each region,search the preset mapping relationship between the attribute informationand the control parameter to obtain a control parameter of each region,and execute a video enhancement operation on the current frame by usingthe control parameters of all the regions in the current frame.

In the embodiment, the first enhancement sub-module may optionally beconfigured to:

for each current frame, calculate a QP of the current frame, search apreset mapping relationship to obtain a control parameter correspondingto the QP, and execute a video enhancement operation on the currentframe by using the control parameter; or,

for each current frame, determine a scenario type of the current frame,search a preset mapping relationship to obtain a control parametercorresponding to the scenario type, and execute video enhancementoperation on the current frame by using the control parameter; or,

for each current frame, calculate a luminance value of the currentframe, search a preset mapping relationship to obtain a controlparameter corresponding to the luminance value, and execute a videoenhancement operation on the current frame by using the controlparameter,

wherein the control parameter includes at least one of: a contrastcontrol parameter, a definition control parameter or a noise reductioncontrol parameter.

In the embodiment, the second enhancement sub-module may optionally beconfigured to:

for each current frame, divide the current frame into multiple regions,calculate a QP of each region, search a preset mapping relationshipbetween a QP and a control parameter to obtain the control parameter ofeach region, and execute a video enhancement operation on the currentframe by using the control parameters of all the regions in the currentframe; or,

for each current frame, divide the current frame into multiple regions,determine a scenario type of each region, search a preset mappingrelationship between a scenario type and a control parameter to obtainthe control parameter of each region, and execute video enhancementoperation on the current frame by using the control parameters of allthe regions in the current frame; or,

for each current frame, divide the current frame into multiple regions,calculate a luminance value of each region, search a preset mappingrelationship between a luminance value and a control parameter to obtainthe control parameter of each region, and execute a video enhancementoperation on the current frame by using the control parameters of allthe regions in the current frame,

wherein the control parameter includes at least one of: a contrastcontrol parameter, a definition control parameter or a noise reductioncontrol parameter.

In the embodiment, the first enhancement sub-module may optionallyinclude:

a frame smoothing processing unit, configured to calculate a differencebetween the control parameter of the current frame and a controlparameter of a previous frame, and judge whether an absolute value ofthe difference exceeds a specified threshold value or not; if theabsolute value exceeds the specified threshold value, calculate a newcontrol parameter according to the control parameter of the previousframe and the threshold value, and execute video enhancement operationon the current frame by using the new control parameter; and if theabsolute value does not exceed the specified threshold value, executevideo enhancement operation on the current frame by using the controlparameter of the current frame.

In the embodiment, the second enhancement sub-module may optionallyinclude:

a region smoothing processing unit, configured to, before executingvideo enhancement operation on the current frame by using the controlparameters of all the regions in the current frame, for each region i inthe current frame, judge whether absolute values of differences betweencontrol parameters of neighbouring regions and a control parameter ofthe region i exceed a specified threshold value or not; if an absolutevalue of a difference between a control parameter of at least oneneighbouring region and the control parameter of the region i exceedsthe specified threshold value, calculate a new control parameteraccording to a preset algorithm, and determine the new control parameteras the control parameter of the region i; and if the absolute values ofthe differences between the control parameters of all the neighbouringregions and the control parameter of the region i do not exceed thespecified threshold value, keep the control parameter of the region iunchanged.

In the embodiment, the region smoothing processing unit may optionallyinclude:

a calculation subunit, configured to calculate the new control parameteraccording to the control parameters of the neighbouring regionsaccording to a principle that the absolute values of the differenceswith the control parameters of each neighbouring region do not exceedthe specified threshold value; or, specify a weight for eachneighbouring region, and calculate the new control parameter accordingto the control parameters and weights of the neighbouring regions.

In the embodiment, the mapping relationship may optionally be any oneof:

first: in the mapping relationship, a larger QP corresponds to a smallercontrast control parameter, and/or,

a larger QP corresponds to a smaller definition control parameter,and/or,

a larger QP corresponds to a larger noise reduction control parameter;or,

or, second:

in the mapping relationship, a higher movement degree represented by ascenario type corresponds to a smaller contrast control parameter,and/or,

a higher movement degree represented by a scenario type corresponds to asmaller definition control parameter, and/or,

a higher movement degree represented by a scenario type corresponds to alarger noise reduction control parameter;

or, third:

in the mapping relationship, a larger luminance value corresponds to alarger contrast control parameter, and/or,

a larger luminance value corresponds to a larger definition controlparameter, and/or,

a larger luminance value corresponds to a smaller noise reductioncontrol parameter.

In the embodiment, the scenario type optionally at least includes astill scenario and a moving scenario;

the still scenario includes: a desktop or document sharing scenarioand/or a still person scenario; and

the moving scenario includes: at least one of a slight moving scenario,an ordinary moving scenario, a large moving scenario and a strenuousmoving scenario.

In the embodiment, the method may optionally further include:

a coding module, configured to code the video subjected to videoenhancement operation; and

a sending module, configured to send the coded video.

In the embodiment, the device may optionally further include:

a receiving module, configured to receive the video;

a decoding module, configured to decode the video received by thereceiving module; and

the acquisition module is configured to sequentially acquire each framein the video decoded by the decoding module.

The device provided by the embodiment may execute the method provided byany one of the abovementioned method embodiments, and detailed processesrefer to descriptions in the method embodiments, and will not beelaborated herein.

According to the device provided by the embodiment, each frame in thevideo is sequentially acquired; for each current frame, the attributeinformation reflecting the moving state or the luminance is determined,the preset mapping relationship is searched to obtain the controlparameter corresponding to the attribute information, and videoenhancement operation is executed on the current frame by using thecontrol parameter; the problem of processing inflexibility caused byexecution of the same enhancement over each frame in the video issolved; and each frame in the video may be differentially processed, anddifferent control parameters are determined for different enhancementaccording to the moving states or luminance in each frame, so thatframe-based video enhancement is implemented, a video enhancement effectis effectively improved, and quality of the video is improved.

Referring to FIG. 25, another embodiment of the disclosure provides aterminal 600, which may include parts such as a communication unit 610,a memory 620 including one or more than one non-volatile readablestorage medium, an input unit 630, a display unit 640, a sensor 650, anaudio circuit 660, a Wireless Fidelity (WiFi) module 670, a processor680 including one or more than one processing core and a power supply690.

Those skilled in the art should know that a structure of the terminalshown in FIG. 25 is not intended to limit the terminal, and may includemore or fewer parts than those shown in the figure, or combinations ofsome parts, or different part arrangement. Wherein:

the memory 620 may be configured to store a software programs andmodules, and the processor 680 runs the software programs and modulesstored in the memory 620, thereby executing various functionapplications and data processing. The memory 620 may mainly include aprogram storage area and a data storage area, wherein the programstorage area may store an operating system, an application programrequired by at least one function and the like; and the data storagearea may store data created according to use of the terminal 600 and thelike. In addition, the memory 620 may include a high-speed random accessmemory, and may further include a non-volatile memory, such as at leastone magnetic disk memory, flash memory or other volatile solid-statememory. Correspondingly, the memory 620 may further include a memorycontroller so as to provide access of the processor 680 and the inputunit 630 to the memory 620.

The processor 680 is a control centre of the terminal 600, connects eachpart of the whole mobile phone by virtue of various interfaces andcircuits, and monitors the whole mobile phone by running or executingthe software programs and/or modules stored in the memory 620, callingthe data stored in the memory 620 and execute various functions and dataprocessing of the terminal 600. Optionally, the terminal 680 may includeone or more processing cores; and preferably, the processor 680 may beintegrated into an application processor and a modulation anddemodulation processor, wherein the application processor mainlyprocesses an operating system, a user interface, an application programand the like, and the modulation and demodulation processor mainlyprocesses wireless communication. It should be understood that themodulation and demodulation processor may also not be integrated in theprocessor 680.

An optional structure of the terminal 600 is described above withreference to FIG. 25, wherein one or more modules are stored in thememory and configured to be executed by the one or more processors, andthe one or more modules may execute the method provided by theembodiment correspondingly shown in FIG. 1.

According to the terminal provided by the embodiment, each frame in avideo is sequentially acquired; for each current frame, attributeinformation reflecting a moving state or luminance is determined, apreset mapping relationship is searched to obtain a control parametercorresponding to the attribute information, and video enhancementoperation is executed on the current frame by using the controlparameter; the problem of processing inflexibility caused by executionof the same enhancement over each frame in the video is solved; and eachframe in the video may be differentially processed, and differentcontrol parameters are determined for different enhancement according tothe moving states or luminance in each frame, so that frame-based videoenhancement is implemented, a video enhancement effect is effectivelyimproved, and quality of the video is improved.

Another embodiment of the disclosure provides a server, which may beconfigured to execute the video enhancement methods provided by theabovementioned embodiments. Referring to FIG. 26, the server 1900 mayhave a great difference due to different configurations or performance,and may include one or more than one Central Processing Unit (CPU) 1922(such as one or more than one processor) and memory 1932 and one or morethan one storage medium 1930 (such as one or more than one piece ofmassive storage equipment) for storing application programs 1942 or data1944. Wherein, the memory 1932 and the storage medium 1930 may beconfigured to temporary storage or persistent storage. The programsstored in the storage medium 1930 may include one or more than onemodule (not shown in the figure), and each module may include a seriesof instruction operation in the server. Furthermore, the CPU 1922 may beconfigured to communicate with the storage medium 1930 and execute aseries of instruction operation in the storage medium 1930 in the server1900.

In the embodiment, it is specifically configured that one or more thanone processor executes the one or more than one program includinginstructions configured to execute the operation in the correspondingembodiment shown in FIG. 1.

According to the server, each frame in a video is sequentially acquired;for each current frame, attribute information reflecting a moving stateor luminance is determined, a preset mapping relationship is searched toobtain a control parameter corresponding to the attribute information,and video enhancement operation is executed on the current frame byusing the control parameter; the problem of processing inflexibilitycaused by execution of the same enhancement over each frame in the videois solved; and each frame in the video may be differentially processed,and different control parameters are determined for differentenhancement according to the moving states or luminance in each frame,so that frame-based video enhancement is implemented, a videoenhancement effect is effectively improved, and quality of the video isimproved.

Another embodiment of the disclosure provides a non-volatile readablestorage medium, in which one or more modules are stored, wherein the oneor more modules may enable equipment to execute the method provided bythe corresponding embodiment shown in FIG. 1 when being applied to theequipment.

The above is only the preferred embodiment of the disclosure and notintended to limit the disclosure. Any modifications, equivalentreplacements, improvements and the like made within the spirit andprinciple of the disclosure shall fall within the scope of protection ofthe disclosure.

What is claimed is:
 1. A video enhancement method, comprising:sequentially acquiring, by a video enhancement device, each frame in avideo; for each current frame, determining, by the video enhancementdevice, attribute information, which reflects a moving state orluminance, of the current frame, searching a preset mapping relationshipbetween attribute information and a control parameter to obtain acontrol parameter of the current frame, and executing a videoenhancement operation on the current frame by using the controlparameter of the current frame; or, for each current frame, dividing, bythe video enhancement device, the current frame into multiple regions,determining attribute information, which reflects a moving state orluminance, of each region, searching a preset mapping relationshipbetween attribute information and control parameter to obtain a controlparameter of each region, and executing a video enhancement operation onthe current frame by using the control parameters of all the regions inthe current frame; wherein the attribute information comprises at leastone of: a Quantization Parameter (QP), a scenario type and a luminancevalue; wherein the control parameter comprises at least one of: acontrast control parameter, a definition control parameter or a noisereduction control parameter.
 2. The method according to claim 1, whereinthe determining the attribute information, which reflects the movingstate or the luminance, of the current frame and searching the presetmapping relationship between the attribute information and the controlparameter to obtain the control parameter of the current framecomprises: calculating a QP of the current frame, and searching a presetmapping relationship between a QP and a control parameter to obtain acontrol parameter corresponding to the QP; or, determining a scenariotype of the current frame, and searching a preset mapping relationshipbetween a scenario type and a control parameter to obtain a controlparameter corresponding to the scenario type; or, calculating aluminance value of the current frame, and searching a preset mappingrelationship between a luminance value and a control parameter to obtaina control parameter corresponding to the luminance value.
 3. The methodaccording to claim 1, wherein the determining the attribute information,which reflects the moving state or the luminance, of each region andsearching the preset mapping relationship between the attributeinformation and the control parameter to obtain the control parameter ofeach region comprises: calculating a QP of each region, and searching apreset mapping relationship between a QP and a control parameter toobtain the control parameter of each region; or, determining a scenariotype of each region, and searching a preset mapping relationship betweena scenario type and a control parameter to obtain the control parameterof each region; or, calculating a luminance value of each region, andsearching a preset mapping relationship between a luminance value and acontrol parameter to obtain the control parameter of each region,wherein the control parameter comprises at least one of: a contrastcontrol parameter, a definition control parameter or a noise reductioncontrol parameter.
 4. The method according to claim 1, wherein theexecuting video enhancement operation on the current frame by using thecontrol parameter of the current frame comprises: calculating adifference between the control parameter of the current frame and acontrol parameter of a previous frame, and judging whether an absolutevalue of the difference exceeds a specified threshold value or not; ifthe absolute value of the difference exceeds the specified thresholdvalue, calculating a new control parameter according to the controlparameter of the previous frame and the threshold value, and executing avideo enhancement operation on the current frame by using the newcontrol parameter; and if the absolute value of the difference does notexceed the specified threshold value, executing a video enhancementoperation on the current frame by using the control parameter of thecurrent frame.
 5. The method according to claim 1, before executingvideo enhancement operation on the current frame by using the controlparameters of all the regions in the current frame, further comprising:for each region i in the current frame, judging whether an absolutevalue of a difference between a control parameter of a neighbouringregion and a control parameter of the region i exceeds a specifiedthreshold value or not; if an absolute value of a difference between acontrol parameter of at least one neighbouring region and the controlparameter of the region i exceeds the specified threshold value,calculating a new control parameter according to a preset algorithm, anddetermining the new control parameter as the control parameter of theregion i; and if the absolute values of the differences between thecontrol parameters of all the neighbouring regions and the controlparameter of the region i do not exceed the specified threshold value,keeping the control parameter of the region i unchanged.
 6. The methodaccording to claim 5, wherein calculating the new control parameteraccording to the preset algorithm comprises: calculating the new controlparameter according to the control parameters of the neighbouringregions, under a principle that the absolute values of the differenceswith the control parameters of each neighbouring region do not exceedthe specified threshold value; or, specifying a weight for eachneighbouring region, and calculating the new control parameter accordingto the control parameters and weights of the neighbouring regions. 7.The method according to claim 2, wherein in the mapping relationship, alarger QP corresponds to a smaller contrast control parameter, and/or, alarger QP corresponds to a smaller definition control parameter, and/or,a larger QP corresponds to a larger noise reduction control parameter;or, in the mapping relationship, a higher movement degree represented bya scenario type corresponds to a smaller contrast control parameter,and/or, a higher movement degree represented by a scenario typecorresponds to a smaller definition control parameter, and/or, a highermovement degree represented by a scenario type corresponds to a largernoise reduction control parameter; or, in the mapping relationship, alarger luminance value corresponds to a larger contrast controlparameter, and/or, a larger luminance value corresponds to a largerdefinition control parameter, and/or, a larger luminance valuecorresponds to a smaller noise reduction control parameter.
 8. Themethod according to claim 2, wherein the scenario type at leastcomprises a still scenario and a moving scenario; the still scenariocomprises: a desktop or document sharing scenario and/or a still personscenario; and the moving scenario comprises: at least one of a slightmoving scenario, an ordinary moving scenario, a large moving scenarioand a strenuous moving scenario.
 9. The method according to claim 1,after executing video enhancement operation on the current frame byusing the control parameter, further comprising: coding the videosubjected to the video enhancement operation, and sending the codedvideo.
 10. The method according to claim 1, wherein the sequentiallyacquiring each frame in the video comprises: receiving the video,decoding the video, and sequentially acquiring each frame in the decodedvideo.
 11. A video enhancement device, comprising: a processor and amemory, a set of program codes being stored in the memory and theprocessor executing the program codes stored in the memory to implementthe following operation: sequentially acquiring each frame in a video;for each current frame, determining attribute information, whichreflects a moving state or luminance, of the current frame, searching apreset mapping relationship between attribute information and a controlparameter to obtain a control parameter of the current frame, andexecuting a video enhancement operation on the current frame by usingthe control parameter of the current frame; or, for each current frame,dividing the current frame into multiple regions, determining attributeinformation, which reflects a moving state or luminance, of each region,searching a preset mapping relationship between the attributeinformation and the control parameter to obtain a control parameter ofeach region, and executing a video enhancement operation on the currentframe by using the control parameters of all the regions in the currentframe; wherein the attribute information comprises at least one of: aQuantization Parameter (QP), a scenario type and a luminance value;wherein the control parameter comprises at least one of: a contrastcontrol parameter, a definition control parameter or a noise reductioncontrol parameter.
 12. The device according to claim 11, wherein theprocessor executes the program codes stored in the memory to implementthe following operation: for each current frame, calculating a QP of thecurrent frame, searching a preset mapping relationship between a QP anda control parameter to obtain a control parameter corresponding to theQP, and executing a video enhancement operation on the current frame byusing the control parameter; or, for each current frame, determining ascenario type of the current frame, searching a preset mappingrelationship between a scenario type and a control parameter to obtain acontrol parameter corresponding to the scenario type, and executing avideo enhancement operation on the current frame by using the controlparameter; or, for each current frame, calculating a luminance value ofthe current frame, searching a preset mapping relationship between aluminance value and a control parameter to obtain a control parametercorresponding to the luminance value, and executing a video enhancementoperation on the current frame by using the control parameter, whereinthe control parameter comprises at least one of: a contrast controlparameter, a definition control parameter or a noise reduction controlparameter.
 13. The device according to claim 11, wherein the processorexecutes the program codes stored in the memory to implement thefollowing operation: for each current frame, dividing the current frameinto multiple regions, calculating a QP of each region, searching thepreset mapping relationship between the QP and the control parameter toobtain the control parameter of each region, and executing a videoenhancement operation on the current frame by using the controlparameters of all the regions in the current frame; or, for each currentframe, dividing the current frame into multiple regions, determining ascenario type of each region, search the preset mapping relationshipbetween the scenario type and the control parameter to obtain thecontrol parameter of each region, and executing a video enhancementoperation on the current frame by using the control parameters of allthe regions in the current frame; or, for each current frame, dividingthe current frame into multiple regions, calculating a luminance valueof each region, searching the preset mapping relationship between theluminance value and the control parameter to obtain the controlparameter of each region, and executing video a enhancement operation onthe current frame by using the control parameters of all the regions inthe current frame, wherein the control parameter comprises at least oneof: a contrast control parameter, a definition control parameter or anoise reduction control parameter.
 14. The device according to claim 11,wherein the processor executes the program codes stored in the memory toimplement the following operation: calculating a difference between thecontrol parameter of the current frame and a control parameter of aprevious frame, and judging whether an absolute value of the differenceexceeds a specified threshold value or not; if the absolute value of thedifference exceeds the specified threshold value, calculating a newcontrol parameter according to the control parameter of the previousframe and the threshold value, and executing a video enhancementoperation on the current frame by using the new control parameter; andif the absolute value of the difference does not exceed the specifiedthreshold value, executing a video enhancement operation on the currentframe by using the control parameter of the current frame.
 15. Thedevice according to claim 11, wherein the processor executes the programcodes stored in the memory to implement the following operation: beforeexecuting a video enhancement operation on the current frame by usingthe control parameters of all the regions in the current frame, for eachregion i in the current frame, judging whether an absolute value of adifference between a control parameter of a neighbouring region and acontrol parameter of the region i exceeds a specified threshold value ornot; if an absolute value of a difference between a control parameter ofat least one neighbouring region and the control parameter of the regioni exceeds the specified threshold value, calculating a new controlparameter according to a preset algorithm, and determining the newcontrol parameter as the control parameter of the region i; and if theabsolute values of the differences between the control parameters of allthe neighbouring regions and the control parameter of the region i donot exceed the specified threshold value, keeping the control parameterof the region i unchanged.
 16. The device according to claim 15, whereinthe processor executes the program codes stored in the memory toimplement the following operation: calculating the new control parameteraccording to the control parameters of the neighbouring regions, underaccording to a principle that the absolute values of the differenceswith the control parameters of each neighbouring region do not exceedthe specified threshold value; or, specifying a weight for eachneighbouring region, and calculating the new control parameter accordingto the control parameters and weights of the neighbouring regions. 17.The device according to claim 12, wherein the processor executes theprogram codes stored in the memory to implement the following operationthat: in the mapping relationship, a larger QP corresponds to a smallercontrast control parameter, and/or, a larger QP corresponds to a smallerdefinition control parameter, and/or, a larger QP corresponds to alarger noise reduction control parameter; or, in the mappingrelationship, a higher movement degree represented by a scenario typecorresponds to a smaller contrast control parameter, and/or, a highermovement degree represented by a scenario type corresponds to a smallerdefinition control parameter, and/or, a scenario type representing ahigher movement degree corresponds to a larger noise reduction controlparameter; or, in the mapping relationship, a larger luminance valuecorresponds to a larger contrast control parameter, and/or, a largerluminance value corresponds to a larger definition control parameter,and/or, a larger luminance value corresponds to a smaller noisereduction control parameter.
 18. The device according to claim 12,wherein the processor executes the program codes stored in the memory toimplement the following operation that: the scenario type at leastcomprises a still scenario and a moving scenario; the still scenariocomprises: a desktop or document sharing scenario and/or a still personscenario; and the moving scenario comprises: at least one of a slightmoving scenario, an ordinary moving scenario, a large moving scenarioand an strenuous moving scenario.
 19. The device according to claim 11,wherein the processor executes the program codes stored in the memory toimplement the following operation: coding the video subjected to thevideo enhancement operation, and sending the coded video.
 20. The deviceaccording to claim 11 wherein the processor executes the program codesstored in the memory to implement the following operation: receiving thevideo, decoding the video, and sequentially acquiring each frame in thedecoded video.